package com.eureka.bclass.enums;

/**
 * @Description 系统关键字
 * @Author: 李星 lixing_java@163.com
 * @Date 2019/6/29 22:47
 */
public enum SysKeyEnum {
    /** 请求头中的 TOKEN key */
    TOKEN("Authorization", "定义在请求头中的key，用于携带TOKEN"),
    GET("GET", "GET请求"),
    POST("POST", "POST请求"),
    /** 登录客户端 */
    LOGIN_CLIENT_APP_ANDROID("appAndroid","登录客户端：移动端-安卓"),
    LOGIN_CLIENT_APP_IOS("appIos","登录客户端：移动端-IOS"),
    LOGIN_CLIENT_APP_APPLET("appApplet","登录客户端：移动端-小程序"),
    LOGIN_CLIENT_PC("pc","登录客户端：电脑"),
    /** 登录用户类型 */
    LOGIN_CATEGORY_SYSTEM("system","登录用户类型：系统用户"),
    LOGIN_CATEGORY_MEMBER("member","登录用户类型：会员用户"),
    LOGIN_CATEGORY_PURCHASER("purchaser","登录用户类型：采购商用户"),
    LOGIN_CATEGORY_SUPPLIER("supplier","登录用户类型：供应商用户"),
    /** 登录方式 */
    LOGIN_TYPE_COMMON("common", "登录方式：账号和密码登录" ),
    LOGIN_TYPE_SMSCODE("smscode", "登录方式：短信验证码登录" ),
    /** 登录认证成功后的用户对象 */
    USERINFO( "userInfo", "用户对象信息" ),
    USERINFO_ID( "userId", "用户id" ),
    USERINFO_ACCOUNT( "account", "用户账户" ),
    USERINFO_PHONE( "phone", "用户手机号码" ),
    USERINFO_VERSION( "version", "用户登录成功后的版本号" ),
    /** redis key 相关 */
    LOGIN_USER_GRAPHICVERIFICATIONCODE("{0}:login:graphicVerificationCode:{1}", "用户登录前的图形验证码，格式：项目名:业务名称:主键名" ),
    LOGIN_USER_SMSVERIFICATIONCODE("{0}:login:smsVerificationCode:{1}", "用户登录前的短信验证码，格式：项目名:业务名称:主键名" ),
    LOGIN_USER_VERSION("{0}:login:version:{1}", "用户登录版本号，格式：项目名:业务名称:主键名" ),
    /** Excel */
    EXCEL2003( ".xls","Excel2003版本" ),
    EXCEL2007( ".xlsx", "Excel2007版本" ),
    ;

    private String key;
    private String describe;

    SysKeyEnum(String key, String describe) {
        this.key = key;
        this.describe = describe;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
